package interclass;

public class Test
{
    public static void main(String[] args)
    {
        //目标：认识匿名内部类
        Animal cat = new Animal()
        {
            @Override
            public void cry()
            {
                System.out.println("🐱喵喵喵");
            }
        };
        cat.cry();
    }
}
